import config from "@/config"
import http from "@/utils/request"
//@ 表示在src目录下

export default {
	token: {
		url: `${config.API_URL}/token`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	getSmsCode: {
		url: `${config.API_URL}/getSmsCode`,
		name: "通过手机获取验证码",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	tokenSms: {
		url: `${config.API_URL}/tokenSms`,
		name: "通过手机认证登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
